package slash.game;

import java.util.Collection;
import java.util.Collections;
import java.util.List;

/**
 * @author gsh
 */
public class Game {
  private Board board;
  private List<Player> players;

  public static Hero hero = new Hero(0);
  
  // Temporarily used to create a hardcoded game
  public static Game Create() {
	  Board board = new Board(30, 30);
	  Game game = new Game(board);
	  
	  board.getCell(5, 5).setTerrain(Terrain.Wall);
	  board.getCell(5, 6).setTerrain(Terrain.Wall);
	  board.getCell(5, 7).setTerrain(Terrain.Wall);
	  board.getCell(5, 8).setTerrain(Terrain.Wall);
	  
	  board.getCell(0 , 0).getContents().add(hero);
	  hero.setCell(board.getCell(0,0));
	  
	  return game;
  }
  
  public Game(Board board) {
	  this.board = board;
  }
  
  public Board getBoard() {
    return board;
  }

  public Collection<Player> getPlayers() {
    return Collections.unmodifiableCollection(players);
  }
}
